<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>搜索结果</title>
    <link href="css/bootstrap-cerulean.css" rel="stylesheet">
    <link href="css/charisma-app.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    <script src="js/bootstrap-modal.js"></script>
    <script src="js/jquery-1.7.2.min.js"></script>
</head>

<body>
<div class="container-fluid"
     style="padding-left:0px;padding-right:2px;">
    <div class="row-fluid">
        <div id="content" class="span10" style="width:100%;">
            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header well">
                        <h2>
                            <i class="icon-user"></i>搜索结果
                        </h2>
                    </div>
                    <div class="box-content">
                        <h2 style="text-align:center; padding-bottom:10px; padding-top:10px">学生搜索结果</h2>
                        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper">

                            <table
                                    class="table table-striped table-bordered bootstrap-datatable datatable dataTable"
                                    id="DataTables_Table_0">
                                <thead>
                                <tr>
                                    <th class="sorting_asc" rowspan="1" colspan="1" style="width: 163px;">学生学号</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 115px;">学生姓名</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 281px;">所在班级</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 83px;">操行总分</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 439px;">操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                    <tr>
                                        <td colspan="5" style="text-align:center;font-size:20px;color:red;">
                                            <br>
                                            很遗憾，没有任何搜索结果！
                                            <br>
                                            <br>
                                        </td>
                                    </tr>
                                    <tr class="odd">
                                        <td class=" sorting_1">${student.getStudentnumber() }</td>
                                        <td class="center ">${student.getName() }</td>
                                        <td class="center ">${student.getClassnumber() }</td>
                                        <td class="center ">${student.getScore() }</td>
                                        <td class="center ">
                                            <a class="btn btn-success" href="admin/view_studentscore.action?studentnumber=${student.getStudentnumber() }
            ">
                                                <i class="icon-zoom-in icon-white"></i>
                                                操行详细
                                            </a>
                                            <a class="btn btn-info"
                                               href="admin/edit_student.action?studentnumber=${student.getStudentnumber() }">
                                                <i class="icon-edit icon-white"></i>
                                                编辑信息
                                            </a>
                                            <a class="btn btn-danger" href="admin/delete_student.action?id=${student.getId() }
            &classnumber=${classnumber }">
                                                <i class="icon-trash icon-white"></i>
                                                删除学生
                                            </a>
                                            <a class="btn btn-info"
                                               href="admin/add_studentscore.action?studentnumber=${student.getStudentnumber() }">
                                                <i class="icon-edit icon-white"></i>
                                                编辑操行
                                            </a>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div class="box-content">
                        <h2 style="text-align:center; padding-bottom:10px; padding-top:10px">班级搜索结果</h2>
                        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper">

                            <table
                                    class="table table-striped table-bordered bootstrap-datatable datatable dataTable"
                                    id="DataTables_Table_0">
                                <thead>
                                <tr>
                                    <th class="sorting_asc" rowspan="1" colspan="1" style="width: 15%">班级代号</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 25%">班级名称</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 10%">班长姓名</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 10%">量化总分</th>
                                    <th class="sorting" rowspan="1" colspan="1" style="width: 40%">操作</th>
                                </tr>
                                </thead>

                                <tbody>

                                <c:if test="${classes == null }">
                                    <tr>
                                        <td colspan="5" style="text-align:center;font-size:20px;color:red;">
                                            <br>
                                            很遗憾，没有任何搜索结果！
                                            <br>
                                            <br>
                                        </td>
                                    </tr>
                                </c:if>

                                <c:forEach items="${classes}" var="theclass">
                                    <tr class="odd">
                                        <td class=" sorting_1">${theclass.classnumber }</td>
                                        <td class="center ">${theclass.classname }</td>
                                        <td class="center ">${theclass.monitor }</td>
                                        <td class="center ">${theclass.score }</td>
                                        <td class="center ">
                                            <a class="btn btn-success"
                                               href="admin/view_classscore.action?classnumber=${theclass.classnumber }">
                                                <i class="icon-zoom-in icon-white"></i>
                                                量化详细
                                            </a>
                                            <a class="btn btn-info"
                                               href="admin/edit_class.action?classnumber=${theclass.classnumber }">
                                                <i class="icon-edit icon-white"></i>
                                                编辑信息
                                            </a>
                                            <a class="btn btn-danger"
                                               href="admin/delete_class.action?id=${theclass.getId() }">
                                                <i class="icon-trash icon-white"></i>
                                                删除班级
                                            </a>
                                            <a class="btn btn-info"
                                               href="admin/add_classscore.action?classnumber=${theclass.classnumber }">
                                                <i class="icon-edit icon-white"></i>
                                                编辑量化
                                            </a>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
</body>
</html>
